SlideShare a Scribd company logo
Les classes anonymes
@FredBouchery
Parse error: syntax error,
unexpected 'class' (T_CLASS) in ...
object(class@anonymous)#1 (0) {
}
class@anonymous/var/www/tests/script1.php0x7f57beb8901d
class@anonymous/var/www/tests/script2.php0x7fc78674c03d
class@anonymous/var/www/tests/script2.php0x7fc78674c03d
class@anonymous/var/www/tests/script2.php0x7fc78674c03d
class@anonymous/var/www/tests/script3.php0x7f090fdc9021
class@anonymous/var/www/tests/script3.php0x7f090fdc9045
class@anonymous/var/www/tests/script3.php0x7f090fdc9069
class@anonymous/var/www/tests/script4.php0x7f42475a9025
object(class@anonymous)#1 (0) {
}
class@anonymous/var/www/tests/script4.php0x7f42475a9025
int(42)
int(42)
Pourquoi ?
Simplifier un algorithme
Ex : détection de référence cyclique dans un
traitement récursif
Retourner un singleton
bool(true)
Retourner un ValueObject
weasel: 42
Merci
@FredBouchery

More Related Content

Viewers also liked

Trabajo
TrabajoTrabajo
Trabajo
yoraima2511
 
MAK Digital Presentation
MAK Digital PresentationMAK Digital Presentation
MAK Digital Presentation
MAKmediapune
 
Mak media and creations credentials
Mak media and creations credentialsMak media and creations credentials
Mak media and creations credentials
MAKmediapune
 
Seminar 1
Seminar 1Seminar 1
Seminar 1
chandnivenkat
 
Families Action Programme
Families Action ProgrammeFamilies Action Programme
Families Action Programme
Westward-Pathfinder
 
Demography
DemographyDemography
Demography
docjanani
 
Al- CNT (Special Composite Material)
Al- CNT (Special Composite Material)Al- CNT (Special Composite Material)
Al- CNT (Special Composite Material)
Mohab Assaf
 
Bai5 hình chiếu trục đo
Bai5 hình chiếu trục đoBai5 hình chiếu trục đo
Bai5 hình chiếu trục đoHoàng Linh
 
fasciola
fasciolafasciola
fasciola
docjanani
 
On a tué mon agilité. Phptour 2016
On a tué mon agilité. Phptour 2016On a tué mon agilité. Phptour 2016
On a tué mon agilité. Phptour 2016
Frederic Bouchery
 
The fault in our stars
The fault in our starsThe fault in our stars
The fault in our stars
laurasici
 

Viewers also liked (11)

Trabajo
TrabajoTrabajo
Trabajo
 
MAK Digital Presentation
MAK Digital PresentationMAK Digital Presentation
MAK Digital Presentation
 
Mak media and creations credentials
Mak media and creations credentialsMak media and creations credentials
Mak media and creations credentials
 
Seminar 1
Seminar 1Seminar 1
Seminar 1
 
Families Action Programme
Families Action ProgrammeFamilies Action Programme
Families Action Programme
 
Demography
DemographyDemography
Demography
 
Al- CNT (Special Composite Material)
Al- CNT (Special Composite Material)Al- CNT (Special Composite Material)
Al- CNT (Special Composite Material)
 
Bai5 hình chiếu trục đo
Bai5 hình chiếu trục đoBai5 hình chiếu trục đo
Bai5 hình chiếu trục đo
 
fasciola
fasciolafasciola
fasciola
 
On a tué mon agilité. Phptour 2016
On a tué mon agilité. Phptour 2016On a tué mon agilité. Phptour 2016
On a tué mon agilité. Phptour 2016
 
The fault in our stars
The fault in our starsThe fault in our stars
The fault in our stars
 

More from Frederic Bouchery

Clean Code or Dirty code ? Afup Day Poitiers 2024
Clean Code or Dirty code ? Afup Day Poitiers 2024Clean Code or Dirty code ? Afup Day Poitiers 2024
Clean Code or Dirty code ? Afup Day Poitiers 2024
Frederic Bouchery
 
Des tests unitaires pour nos règles de conception
Des tests unitaires pour nos règles de conceptionDes tests unitaires pour nos règles de conception
Des tests unitaires pour nos règles de conception
Frederic Bouchery
 
ForumPHP 2020 - Utopie de la généricité
ForumPHP 2020 - Utopie de la généricitéForumPHP 2020 - Utopie de la généricité
ForumPHP 2020 - Utopie de la généricité
Frederic Bouchery
 
Afup Day 2020 en linge: Les structures de données en PHP
Afup Day 2020 en linge: Les structures de données en PHPAfup Day 2020 en linge: Les structures de données en PHP
Afup Day 2020 en linge: Les structures de données en PHP
Frederic Bouchery
 
Agile Tour Rennes 2019 - Pratiques collectives de développement
Agile Tour Rennes 2019 - Pratiques collectives de développementAgile Tour Rennes 2019 - Pratiques collectives de développement
Agile Tour Rennes 2019 - Pratiques collectives de développement
Frederic Bouchery
 
PHP Pragmatic Development
PHP Pragmatic DevelopmentPHP Pragmatic Development
PHP Pragmatic Development
Frederic Bouchery
 
RabbitMQ simplement - Symfony Live Paris 2019
RabbitMQ simplement - Symfony Live Paris 2019RabbitMQ simplement - Symfony Live Paris 2019
RabbitMQ simplement - Symfony Live Paris 2019
Frederic Bouchery
 
ForumPHP 2018 : Comprendre le Machine Learning quand on n’y connaît rien
ForumPHP 2018 : Comprendre le Machine Learning quand on n’y connaît rienForumPHP 2018 : Comprendre le Machine Learning quand on n’y connaît rien
ForumPHP 2018 : Comprendre le Machine Learning quand on n’y connaît rien
Frederic Bouchery
 
Doit on encore faire du php en 2017
Doit on encore faire du php en 2017Doit on encore faire du php en 2017
Doit on encore faire du php en 2017
Frederic Bouchery
 
Breizhcamp 2015 : Pourquoi PHP ?
Breizhcamp 2015 : Pourquoi PHP ?Breizhcamp 2015 : Pourquoi PHP ?
Breizhcamp 2015 : Pourquoi PHP ?
Frederic Bouchery
 
Sauf erreur-je-ne-me-trompe-jamais
Sauf erreur-je-ne-me-trompe-jamaisSauf erreur-je-ne-me-trompe-jamais
Sauf erreur-je-ne-me-trompe-jamais
Frederic Bouchery
 
Breizhcamp 2014 : Une partie de Cache-Cache
Breizhcamp 2014 : Une partie de Cache-CacheBreizhcamp 2014 : Une partie de Cache-Cache
Breizhcamp 2014 : Une partie de Cache-Cache
Frederic Bouchery
 

More from Frederic Bouchery (12)

Clean Code or Dirty code ? Afup Day Poitiers 2024
Clean Code or Dirty code ? Afup Day Poitiers 2024Clean Code or Dirty code ? Afup Day Poitiers 2024
Clean Code or Dirty code ? Afup Day Poitiers 2024
 
Des tests unitaires pour nos règles de conception
Des tests unitaires pour nos règles de conceptionDes tests unitaires pour nos règles de conception
Des tests unitaires pour nos règles de conception
 
ForumPHP 2020 - Utopie de la généricité
ForumPHP 2020 - Utopie de la généricitéForumPHP 2020 - Utopie de la généricité
ForumPHP 2020 - Utopie de la généricité
 
Afup Day 2020 en linge: Les structures de données en PHP
Afup Day 2020 en linge: Les structures de données en PHPAfup Day 2020 en linge: Les structures de données en PHP
Afup Day 2020 en linge: Les structures de données en PHP
 
Agile Tour Rennes 2019 - Pratiques collectives de développement
Agile Tour Rennes 2019 - Pratiques collectives de développementAgile Tour Rennes 2019 - Pratiques collectives de développement
Agile Tour Rennes 2019 - Pratiques collectives de développement
 
PHP Pragmatic Development
PHP Pragmatic DevelopmentPHP Pragmatic Development
PHP Pragmatic Development
 
RabbitMQ simplement - Symfony Live Paris 2019
RabbitMQ simplement - Symfony Live Paris 2019RabbitMQ simplement - Symfony Live Paris 2019
RabbitMQ simplement - Symfony Live Paris 2019
 
ForumPHP 2018 : Comprendre le Machine Learning quand on n’y connaît rien
ForumPHP 2018 : Comprendre le Machine Learning quand on n’y connaît rienForumPHP 2018 : Comprendre le Machine Learning quand on n’y connaît rien
ForumPHP 2018 : Comprendre le Machine Learning quand on n’y connaît rien
 
Doit on encore faire du php en 2017
Doit on encore faire du php en 2017Doit on encore faire du php en 2017
Doit on encore faire du php en 2017
 
Breizhcamp 2015 : Pourquoi PHP ?
Breizhcamp 2015 : Pourquoi PHP ?Breizhcamp 2015 : Pourquoi PHP ?
Breizhcamp 2015 : Pourquoi PHP ?
 
Sauf erreur-je-ne-me-trompe-jamais
Sauf erreur-je-ne-me-trompe-jamaisSauf erreur-je-ne-me-trompe-jamais
Sauf erreur-je-ne-me-trompe-jamais
 
Breizhcamp 2014 : Une partie de Cache-Cache
Breizhcamp 2014 : Une partie de Cache-CacheBreizhcamp 2014 : Une partie de Cache-Cache
Breizhcamp 2014 : Une partie de Cache-Cache
 

Recently uploaded

Orca: Nocode Graphical Editor for Container Orchestration
Orca: Nocode Graphical Editor for Container OrchestrationOrca: Nocode Graphical Editor for Container Orchestration
Orca: Nocode Graphical Editor for Container Orchestration
Pedro J. Molina
 
Enhanced Screen Flows UI/UX using SLDS with Tom Kitt
Enhanced Screen Flows UI/UX using SLDS with Tom KittEnhanced Screen Flows UI/UX using SLDS with Tom Kitt
Enhanced Screen Flows UI/UX using SLDS with Tom Kitt
Peter Caitens
 
如何办理(hull学位证书)英国赫尔大学毕业证硕士文凭原版一模一样
如何办理(hull学位证书)英国赫尔大学毕业证硕士文凭原版一模一样如何办理(hull学位证书)英国赫尔大学毕业证硕士文凭原版一模一样
如何办理(hull学位证书)英国赫尔大学毕业证硕士文凭原版一模一样
gapen1
 
ppt on the brain chip neuralink.pptx
ppt  on   the brain  chip neuralink.pptxppt  on   the brain  chip neuralink.pptx
ppt on the brain chip neuralink.pptx
Reetu63
 
Computer Science & Engineering VI Sem- New Syllabus.pdf
Computer Science & Engineering VI Sem- New Syllabus.pdfComputer Science & Engineering VI Sem- New Syllabus.pdf
Computer Science & Engineering VI Sem- New Syllabus.pdf
chandangoswami40933
 
Baha Majid WCA4Z IBM Z Customer Council Boston June 2024.pdf
Baha Majid WCA4Z IBM Z Customer Council Boston June 2024.pdfBaha Majid WCA4Z IBM Z Customer Council Boston June 2024.pdf
Baha Majid WCA4Z IBM Z Customer Council Boston June 2024.pdf
Baha Majid
 
Ensuring Efficiency and Speed with Practical Solutions for Clinical Operations
Ensuring Efficiency and Speed with Practical Solutions for Clinical OperationsEnsuring Efficiency and Speed with Practical Solutions for Clinical Operations
Ensuring Efficiency and Speed with Practical Solutions for Clinical Operations
OnePlan Solutions
 
Secure-by-Design Using Hardware and Software Protection for FDA Compliance
Secure-by-Design Using Hardware and Software Protection for FDA ComplianceSecure-by-Design Using Hardware and Software Protection for FDA Compliance
Secure-by-Design Using Hardware and Software Protection for FDA Compliance
ICS
 
The Rising Future of CPaaS in the Middle East 2024
The Rising Future of CPaaS in the Middle East 2024The Rising Future of CPaaS in the Middle East 2024
The Rising Future of CPaaS in the Middle East 2024
Yara Milbes
 
Software Test Automation - A Comprehensive Guide on Automated Testing.pdf
Software Test Automation - A Comprehensive Guide on Automated Testing.pdfSoftware Test Automation - A Comprehensive Guide on Automated Testing.pdf
Software Test Automation - A Comprehensive Guide on Automated Testing.pdf
kalichargn70th171
 
Beginner's Guide to Observability@Devoxx PL 2024
Beginner's  Guide to Observability@Devoxx PL 2024Beginner's  Guide to Observability@Devoxx PL 2024
Beginner's Guide to Observability@Devoxx PL 2024
michniczscribd
 
Superpower Your Apache Kafka Applications Development with Complementary Open...
Superpower Your Apache Kafka Applications Development with Complementary Open...Superpower Your Apache Kafka Applications Development with Complementary Open...
Superpower Your Apache Kafka Applications Development with Complementary Open...
Paul Brebner
 
The Power of Visual Regression Testing_ Why It Is Critical for Enterprise App...
The Power of Visual Regression Testing_ Why It Is Critical for Enterprise App...The Power of Visual Regression Testing_ Why It Is Critical for Enterprise App...
The Power of Visual Regression Testing_ Why It Is Critical for Enterprise App...
kalichargn70th171
 
Flutter vs. React Native: A Detailed Comparison for App Development in 2024
Flutter vs. React Native: A Detailed Comparison for App Development in 2024Flutter vs. React Native: A Detailed Comparison for App Development in 2024
Flutter vs. React Native: A Detailed Comparison for App Development in 2024
dhavalvaghelanectarb
 
一比一原版(UMN毕业证)明尼苏达大学毕业证如何办理
一比一原版(UMN毕业证)明尼苏达大学毕业证如何办理一比一原版(UMN毕业证)明尼苏达大学毕业证如何办理
一比一原版(UMN毕业证)明尼苏达大学毕业证如何办理
dakas1
 
J-Spring 2024 - Going serverless with Quarkus, GraalVM native images and AWS ...
J-Spring 2024 - Going serverless with Quarkus, GraalVM native images and AWS ...J-Spring 2024 - Going serverless with Quarkus, GraalVM native images and AWS ...
J-Spring 2024 - Going serverless with Quarkus, GraalVM native images and AWS ...
Bert Jan Schrijver
 
🏎️Tech Transformation: DevOps Insights from the Experts 👩‍💻
🏎️Tech Transformation: DevOps Insights from the Experts 👩‍💻🏎️Tech Transformation: DevOps Insights from the Experts 👩‍💻
🏎️Tech Transformation: DevOps Insights from the Experts 👩‍💻
campbellclarkson
 
Transforming Product Development using OnePlan To Boost Efficiency and Innova...
Transforming Product Development using OnePlan To Boost Efficiency and Innova...Transforming Product Development using OnePlan To Boost Efficiency and Innova...
Transforming Product Development using OnePlan To Boost Efficiency and Innova...
OnePlan Solutions
 
Modelling Up - DDDEurope 2024 - Amsterdam
Modelling Up - DDDEurope 2024 - AmsterdamModelling Up - DDDEurope 2024 - Amsterdam
Modelling Up - DDDEurope 2024 - Amsterdam
Alberto Brandolini
 
DECODING JAVA THREAD DUMPS: MASTER THE ART OF ANALYSIS
DECODING JAVA THREAD DUMPS: MASTER THE ART OF ANALYSISDECODING JAVA THREAD DUMPS: MASTER THE ART OF ANALYSIS
DECODING JAVA THREAD DUMPS: MASTER THE ART OF ANALYSIS
Tier1 app
 

Recently uploaded (20)

Orca: Nocode Graphical Editor for Container Orchestration
Orca: Nocode Graphical Editor for Container OrchestrationOrca: Nocode Graphical Editor for Container Orchestration
Orca: Nocode Graphical Editor for Container Orchestration
 
Enhanced Screen Flows UI/UX using SLDS with Tom Kitt
Enhanced Screen Flows UI/UX using SLDS with Tom KittEnhanced Screen Flows UI/UX using SLDS with Tom Kitt
Enhanced Screen Flows UI/UX using SLDS with Tom Kitt
 
如何办理(hull学位证书)英国赫尔大学毕业证硕士文凭原版一模一样
如何办理(hull学位证书)英国赫尔大学毕业证硕士文凭原版一模一样如何办理(hull学位证书)英国赫尔大学毕业证硕士文凭原版一模一样
如何办理(hull学位证书)英国赫尔大学毕业证硕士文凭原版一模一样
 
ppt on the brain chip neuralink.pptx
ppt  on   the brain  chip neuralink.pptxppt  on   the brain  chip neuralink.pptx
ppt on the brain chip neuralink.pptx
 
Computer Science & Engineering VI Sem- New Syllabus.pdf
Computer Science & Engineering VI Sem- New Syllabus.pdfComputer Science & Engineering VI Sem- New Syllabus.pdf
Computer Science & Engineering VI Sem- New Syllabus.pdf
 
Baha Majid WCA4Z IBM Z Customer Council Boston June 2024.pdf
Baha Majid WCA4Z IBM Z Customer Council Boston June 2024.pdfBaha Majid WCA4Z IBM Z Customer Council Boston June 2024.pdf
Baha Majid WCA4Z IBM Z Customer Council Boston June 2024.pdf
 
Ensuring Efficiency and Speed with Practical Solutions for Clinical Operations
Ensuring Efficiency and Speed with Practical Solutions for Clinical OperationsEnsuring Efficiency and Speed with Practical Solutions for Clinical Operations
Ensuring Efficiency and Speed with Practical Solutions for Clinical Operations
 
Secure-by-Design Using Hardware and Software Protection for FDA Compliance
Secure-by-Design Using Hardware and Software Protection for FDA ComplianceSecure-by-Design Using Hardware and Software Protection for FDA Compliance
Secure-by-Design Using Hardware and Software Protection for FDA Compliance
 
The Rising Future of CPaaS in the Middle East 2024
The Rising Future of CPaaS in the Middle East 2024The Rising Future of CPaaS in the Middle East 2024
The Rising Future of CPaaS in the Middle East 2024
 
Software Test Automation - A Comprehensive Guide on Automated Testing.pdf
Software Test Automation - A Comprehensive Guide on Automated Testing.pdfSoftware Test Automation - A Comprehensive Guide on Automated Testing.pdf
Software Test Automation - A Comprehensive Guide on Automated Testing.pdf
 
Beginner's Guide to Observability@Devoxx PL 2024
Beginner's  Guide to Observability@Devoxx PL 2024Beginner's  Guide to Observability@Devoxx PL 2024
Beginner's Guide to Observability@Devoxx PL 2024
 
Superpower Your Apache Kafka Applications Development with Complementary Open...
Superpower Your Apache Kafka Applications Development with Complementary Open...Superpower Your Apache Kafka Applications Development with Complementary Open...
Superpower Your Apache Kafka Applications Development with Complementary Open...
 
The Power of Visual Regression Testing_ Why It Is Critical for Enterprise App...
The Power of Visual Regression Testing_ Why It Is Critical for Enterprise App...The Power of Visual Regression Testing_ Why It Is Critical for Enterprise App...
The Power of Visual Regression Testing_ Why It Is Critical for Enterprise App...
 
Flutter vs. React Native: A Detailed Comparison for App Development in 2024
Flutter vs. React Native: A Detailed Comparison for App Development in 2024Flutter vs. React Native: A Detailed Comparison for App Development in 2024
Flutter vs. React Native: A Detailed Comparison for App Development in 2024
 
一比一原版(UMN毕业证)明尼苏达大学毕业证如何办理
一比一原版(UMN毕业证)明尼苏达大学毕业证如何办理一比一原版(UMN毕业证)明尼苏达大学毕业证如何办理
一比一原版(UMN毕业证)明尼苏达大学毕业证如何办理
 
J-Spring 2024 - Going serverless with Quarkus, GraalVM native images and AWS ...
J-Spring 2024 - Going serverless with Quarkus, GraalVM native images and AWS ...J-Spring 2024 - Going serverless with Quarkus, GraalVM native images and AWS ...
J-Spring 2024 - Going serverless with Quarkus, GraalVM native images and AWS ...
 
🏎️Tech Transformation: DevOps Insights from the Experts 👩‍💻
🏎️Tech Transformation: DevOps Insights from the Experts 👩‍💻🏎️Tech Transformation: DevOps Insights from the Experts 👩‍💻
🏎️Tech Transformation: DevOps Insights from the Experts 👩‍💻
 
Transforming Product Development using OnePlan To Boost Efficiency and Innova...
Transforming Product Development using OnePlan To Boost Efficiency and Innova...Transforming Product Development using OnePlan To Boost Efficiency and Innova...
Transforming Product Development using OnePlan To Boost Efficiency and Innova...
 
Modelling Up - DDDEurope 2024 - Amsterdam
Modelling Up - DDDEurope 2024 - AmsterdamModelling Up - DDDEurope 2024 - Amsterdam
Modelling Up - DDDEurope 2024 - Amsterdam
 
DECODING JAVA THREAD DUMPS: MASTER THE ART OF ANALYSIS
DECODING JAVA THREAD DUMPS: MASTER THE ART OF ANALYSISDECODING JAVA THREAD DUMPS: MASTER THE ART OF ANALYSIS
DECODING JAVA THREAD DUMPS: MASTER THE ART OF ANALYSIS